import time
from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("https://www.baidu.com")
wd = driver.find_element(By.NAME,'wd')
print(wd)
print(wd.get_attribute("outerHTML"))
print(driver.find_element(By.NAME, "ie").get_attribute('outerHTML'))
driver.quit()